Skip to content

fix(cli): preserve multi-record responses in raw API envelopes - #5850

Open
Yzzz88 wants to merge 2 commits into
Tencent:mainfrom
Yzzz88:fix/raw-api-multirecord-response
Open

Yzzz88 wants to merge 2 commits into
Tencent:mainfrom
Yzzz88:fix/raw-api-multirecord-response

Conversation

@Yzzz88

@Yzzz88 Yzzz88 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The JSON output of the raw API command accepted the first JSON object in an NDJSON response and silently discarded subsequent records. Wrap complete JSON documents directly; preserve every byte of multi-record or other text responses as a string.

Verification

go test -count=1 -run "TestRawEnvelope|TestAPI_RawBody" ./cmd/api in the CLI module.

@Yzzz88

Yzzz88 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for your time on this project. Regarding this change (preserve multi-record responses in raw API envelopes), when you have a chance to review it, is there any additional context or validation you would like me to provide?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant